package org.divineryang.mapper;

import org.divineryang.model.dto.product.CategoryBrandDto;
import org.divineryang.model.entity.product.Brand;
import org.divineryang.model.entity.product.CategoryBrand;

import java.util.List;

/**
 * @program new-bee
 * @Description
 * @Author Diviner Yang
 * @Date 2024/04/27 8:02
 * @Version 1.0
 */
public interface CategoryBrandMapper {
    List<CategoryBrand> findByPage(CategoryBrandDto categoryBrandDto);

    void save(CategoryBrand categoryBrand);

    void updateById(CategoryBrand categoryBrand);

    void deleteById(Long id);

    List<Brand> findBrandByCategoryId(Long categoryId);
}
